package com.wsc.personalblog.mapper;

import com.wsc.personalblog.DTO.LeaveAMsgDTO;
import com.wsc.personalblog.entity.LeaveAMessage;
import com.wsc.personalblog.entity.LeaveAMessageExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface LeaveAMessageMapper {

    List<LeaveAMsgDTO> getLAM();

    List<LeaveAMsgDTO> getLAMById(@Param("id") Integer id);

    int countByExample(LeaveAMessageExample example);

    int deleteByExample(LeaveAMessageExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(LeaveAMessage record);

    int insertSelective(LeaveAMessage record);

    List<LeaveAMessage> selectByExample(LeaveAMessageExample example);

    LeaveAMessage selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") LeaveAMessage record, @Param("example") LeaveAMessageExample example);

    int updateByExample(@Param("record") LeaveAMessage record, @Param("example") LeaveAMessageExample example);

    int updateByPrimaryKeySelective(LeaveAMessage record);

    int updateByPrimaryKey(LeaveAMessage record);
    @Select("select id from leave_a_message")
    List<Integer> getLAMtIdAll();
}